package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.AddressBook;

import java.util.List;

/**
 * @author ck
 * @date 2021/10/18 13:14
 */
public interface AddressBookService extends IService<AddressBook> {

    /**
     * 设置默认地址
     * @param addressBook
     */
    public void setDefault(AddressBook addressBook);

    /**
     * 获取默认地址
     */

    public R<AddressBook> getDefault();

    /**
     * 查询所有地址
     * @param addressBook
     * @return
     */
    public R<List<AddressBook>> catList(AddressBook addressBook);
}
